package org.example.module.security;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;

@Getter
@Setter
@ToString
@Component
@ConfigurationProperties(prefix = "app.security")
public class SecuritySettings {

	@NotNull
	private String[] permitUrl;

	@NotNull
	private String[] protectUrl;

	@NotNull
	private String[] swaggerUrl;

	@NotNull
	private Integer tokenExpirationTime;

	@NotNull
	private String tokenSigningKey;

	@NotNull
	private String tokenHeaderParam;

	@NotNull
	private Integer refreshTokenExpTime;

}
